package com.xunlai.infra.permission.business.vo.photoGallery;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liang
 * @date 8/11/23 6:28 PM
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class QrCodeGenerateVo implements Serializable {

    @Serial
    private static final long serialVersionUID = -1182217555550069708L;

    private String content;

    private Integer height = 300;

    private Integer width = 300;

    public static void main(String[] args) throws JsonProcessingException {
        QrCodeGenerateVo routeCreateReqVo = new QrCodeGenerateVo();
        ObjectMapper objectMapper = new ObjectMapper();
        String s = objectMapper.writeValueAsString(routeCreateReqVo);
        System.out.println(s);
    }
}
